package repo_gorm

import (
	"fmt"
	"github.com/jinzhu/gorm"

	"clean/infra/repo/db_itf"
)

var db *gorm.DB

func CreateInitTables(adapter db_itf.DbAdapter) (e error) {
	defer func() {
		err := recover()
		if err != nil {
			e = fmt.Errorf("%v", err)
		}
	}()
	db = adapter.Gorm()
	db.AutoMigrate(true)
	createHello(db)
	return
}

func createHello(db *gorm.DB) {
}
